<h2><%= link_to post.title, post.url %></h2>
  
<!-- Linkovi za moderatora -->
<% if moderator? then %>
    <div class="admin_options">
        <%= image_tag('black_icons/wrench.png', :class=>'menu_icon' ) %>
        <%= link_to "Edit", edit_post_path(post) %>
    </div>
<% end %>
<!-- Kraj linkova za moderatora -->
        
<div class="post_meta_data">
	Napisao <%= link_to post.member.username, post.member %> <%= post.created_at %> 
</div>

<div class="post_content">
	<%= raw parse_bbcode(post.content,false) %>
    <div style="clear:both;"></div>
</div>
